package code

// common: database error
const (
	// ErrDatabase - 500: Database error.
	ErrDatabase int = 100100 + iota
)

const (
	// ErrUnsupportRequest - 400: ceph porxy unsupport
	ErrUnsupportRequest = 100200 + iota
	// ErrAkNotFound - 401: cache not found accesskey
	ErrAkNotFound
	// ErrAkNotFound - 401: parse ak from header failed
	ErrParseAkFromHeader
	// ErrNotRegisterCephProxy - 401: ak not found in cephproxy platform
	ErrNotRegisterCephProxy
	// ErrValidateSign - 401： validate signature failed for part upload
	ErrValidateSign
	// ErrTooManyRequest - 429: http request too many
	ErrTooManyRequests
)

const (
	// ErrParamsInvalid - 400: params error
	ErrParamsInvalid = 100300 + iota

	ErrNotFound

	ErrInternal
)
